﻿<%@ Page Title="" Language="C#" MasterPageFile="~/source/masterpage/Base.Master" AutoEventWireup="true" CodeBehind="ProductsDetails.aspx.cs" Inherits="QLK.Web.Products" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

    

    <title></title>
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
        .style2
        {
            text-align: center;
        }
        .style3
        {
            text-align: left;
        }
        .style4
        {
            text-align: left;
        }
        .style5
        {
            text-align: left;
        }
        .style6
        {
            width: 136px;
            text-align: left;
        }
    </style>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <div>
            &nbsp;<table class="style1" cellpadding="3" cellspacing="3">
            <tr>
                <td colspan="2" class="style4">
                    <b>INSERT PRODUCT</b></td>
            </tr>
            <tr>
                <td class="style3" colspan="2">
                    <asp:Label ID="lblWarning" runat="server" CssClass="msg" ></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="style6">
                    UPC:&nbsp;&nbsp;&nbsp;
                </td>
                <td>
                    <asp:TextBox ID="txtUPC" runat="server" CssClass="commonTexbox" ></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                        ControlToValidate="txtUPC" ErrorMessage="** Can not null" ValidationGroup="CheckIsNull"></asp:RequiredFieldValidator>
                &nbsp;</td> 
            </tr>
            <tr>
                <td class="style6">
                    ProductName:&nbsp;&nbsp;&nbsp;
                </td>
                <td>
                    <asp:TextBox ID="txtProName" runat="server" CssClass="commonTexbox"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                        ControlToValidate="txtProName" ErrorMessage="** Can not null" ValidationGroup="CheckIsNull"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="style6">
                    Category:&nbsp;&nbsp;&nbsp;&nbsp;
                </td>
                <td>
                    <asp:DropDownList ID="drlCateID" runat="server" CssClass="commonTexbox">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="style6">
                    Manufacture:&nbsp;&nbsp;&nbsp;&nbsp;
                </td>
                <td>
                    <asp:DropDownList ID="drlManufacture" runat="server" CssClass="commonTexbox">
                        <asp:ListItem>--Choose--</asp:ListItem>
                        
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="style6" style="vertical-align:text-top">
                    Image:&nbsp;&nbsp;&nbsp;&nbsp;
                </td>
                <td>
                    <asp:Image ID="ImgProduct" runat="server" Height="180px" Width="220px" />
                    <br />
                    <asp:FileUpload ID="FileUpload1" runat="server" Width="220px" />
                </td>
            </tr>
            <tr>
                <td class="style6" style="vertical-align:text-top">
                    &nbsp;</td>
                <td>
                    <asp:Button ID="btnUpload" runat="server" onclick="btnUpload_Click" 
                        Text="Upload Image" CssClass="commonButton"/>
                    <asp:Button ID="btnSave" runat="server"  
                        Text="Save Product" CssClass="commonButton"
                        ValidationGroup="CheckIsNull" onclick="btnSave_Click"/>
                </td>
            </tr>
          
            <tr>
                <td class="style6" style="vertical-align:text-top">
                    &nbsp;</td>
                <td>
                   <asp:LinkButton ID="btnProducts" runat="server" BorderStyle="None" 
                        ForeColor="Lime" onclick="btnProducts_Click">View Products</asp:LinkButton>
                </td>
            </tr>
          
            </table>
    </div>

</asp:Content>
